package cards;

import java.awt.Image;
import java.awt.image.BufferedImage;

/**
 * this class is used in situations like GuoHe and JieDao.
 * 
 * @author ILD
 *
 */
public class RandomCard extends Card {
	// TODO the variable "visible" may be deprecated, be substituted by this
	// card.
	public RandomCard(){
		this(0,0);
	}
	public RandomCard(int c, int n){
	//CAPITAL FOR EMPHASIS
		super("RANDOM", c,n, "for GUOHE/JIEDAO/and such only");
		visible = false;
	}
	public static BufferedImage image;
	public static void ImageInit(BufferedImage toBinit){
		image = toBinit;
	}	
	@Override
	public BufferedImage getImage() {
		return image;
	}

	@Override
	public boolean instanceOf(String superClass) {
		if(superClass.equalsIgnoreCase("RANDOM")){
			return true;
		}
		return false;
	}

}
